//
//  DownLoadManager.h
//  Ting
//
//  Created by 安静的美男子 on 14/11/28.
//  Copyright (c) 2014年 安静的美男子. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "ASIHTTPRequest.h"

typedef void(^myBlock) (BOOL have);

@interface DownLoadManager : NSObject
+(DownLoadManager *)shareManager;
@property(nonatomic, copy)NSString *url;
@property(nonatomic, copy)NSString *webPath;
@property(nonatomic, copy)NSString *tempFile;
@property(nonatomic, assign)long long total;
@property(nonatomic, assign)long long size;
@property(nonatomic, strong)ASIHTTPRequest *request;
-(void)downloadWithBlock:(myBlock)block
                     url:(NSString *)urlString
                    name:(NSString *)name;


@end
